<div class="content-ban">
    <div class="box-search">
	<div class="title-search">Start Your Search</div>
	<?php
	$form = $this->beginWidget('CActiveForm', array(
	    'id' => 'singup-form',
	    'htmlOptions' => array(
		'class' => 'form-horizontal'
	    )
	));
	?>	

	<?php if ($form->errorSummary($model)) {
	    ?>
    	<!-- Modal -->
    	<div id="error-sign-up" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    	    <div class="modal-header">
    		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    		<h3 id="myModalLabel">Error!</h3>
    	    </div>
    	    <div class="modal-body">
    		<div class="alert alert-error"><?php echo $form->errorSummary($model) ?></div>
    	    </div>
    	    <div class="modal-footer">
    		<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>		
    	    </div>
    	</div>
	<?php } ?>

	<?php if ($success) { ?>
    	<!-- Modal -->
    	<div id="success-sign-up" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    	    <div class="modal-header">
    		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    		<h3 id="myModalLabel">Success!</h3>
    	    </div>
    	    <div class="modal-body">
    		<div class="alert alert-success">You have registered successfully. Please check your email to active your account.</div>
    	    </div>
    	    <div class="modal-footer">
    		<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>		
    	    </div>
    	</div>
	<?php } ?>

	<div class="control-group">
	    <label class="control-label" for="inputEmail">Username:</label>
	    <div class="controls">
		<?php echo $form->textField($model, 'username', array('placeholder' => 'Username')); ?>
	    </div>
	</div>
	<div class="control-group">
	    <label class="control-label" for="inputEmail">Gender:</label>
	    <div class="controls">
		<?php echo $form->radioButtonList($model, 'gender', User::getGenderRange()) ?>
	    </div>
	</div>
	<div class="control-group">
	    <label class="control-label" for="inputEmail">Choose Password:</label>
	    <div class="controls">
		<?php echo $form->passwordField($model, 'password', array('placeholder' => 'password')); ?>
	    </div>
	</div>
	<div class="control-group">
	    <label class="control-label" for="inputEmail">Email</label>
	    <div class="controls">
		<?php echo $form->textField($model, 'email', array('placeholder' => 'Email')); ?>
	    </div>
	</div>

	<div class="control-group">
	    <label class="control-label" for="inputEmail">Zip code</label>
	    <div class="controls">
		<?php echo $form->textField($model, 'postcode', array('placeholder' => 'Zip code')); ?>
	    </div>
	</div>

	<div class="control-group">
	    <div class="controls">
		<button type="submit" class="btn btn-warning" name="sign-up">Join Free Now !</button>
	    </div>
	</div>
	<?php $this->endWidget(); ?>

	<div class="bottom-search">
	    <?php $this->widget('ext.hoauth.widgets.HOAuth') ?>
	    <?php /* <a href="#"><img src="<?php echo WWW_URL ?>images/img_23.png" /></a> */ ?>
	</div>

    </div>

    <div class="box-banner">
	<div class="img-ban"><img src="<?php echo WWW_URL ?>images/banner.png"></div>
    </div>

</div><!--content-ban-->